package com.woniu.goods.mapper;

import com.woniu.goods.entity.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper {
    int deleteByPrimaryKey(Integer gid);

    int insert(Goods record);

    Goods selectByPrimaryKey(Integer gid);

    List<Goods> selectAll();

    int updateByPrimaryKey(Goods record);


    List<Goods> selectGoodsByPage(@Param("gname") String ganme, @Param("typeId") Integer typeId);
}